package cn.jiangjiesheng.bootstrap.filestore;

import cn.jiangjiesheng.bootstrap.filestore.properties.FileStoreProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by dev@jiangjiesheng.cn on 2021/9/3  <br/>
 *
 * @author dev@jiangjiesheng.cn
 */
@Configuration
@EnableConfigurationProperties(FileStoreProperties.class)
public class FileStoreAutoConfiguration {

    @Bean
    public FileStoreClient fileStoreClient(FileStoreProperties fileStoreProperties) {
        return new FileStoreClient(fileStoreProperties);
    }

}
